import request from "@/utils/request";

// 查询运费模板列表
export function listShippingTemplates(query) {
  return request({
    url: "/business/shippingTemplates/list",
    method: "get",
    params: query,
  });
}

// 查询运费模板所有列表
export function listAllShippingTemplates(query) {
  return request({
    url: "/business/shippingTemplates/listAll",
    method: "get",
    params: query,
  });
}

// 查询运费模板详细
export function getShippingTemplates(id) {
  return request({
    url: "/business/shippingTemplates/getInfo/" + id,
    method: "get",
  });
}

// 新增运费模板
export function addShippingTemplates(data) {
  return request({
    url: "/business/shippingTemplates/add",
    method: "post",
    data: data,
  });
}

// 修改运费模板
export function updateShippingTemplates(data) {
  return request({
    url: "/business/shippingTemplates/edit",
    method: "post",
    data: data,
  });
}

// 删除运费模板
export function delShippingTemplates(id) {
  return request({
    url: "/business/shippingTemplates/remove/" + id,
    method: "get",
  });
}

//获取城市列表
export function getCity() {
  return request({
    url: "/business/shippingTemplates/citys",
  });
}
